/* eslint-disable @typescript-eslint/no-var-requires */
// const CopyPlugin = require('copy-webpack-plugin')
const path = require('path')

///是否是开发环境
const debug = process.env.NODE_ENV !== 'production'
const APP_NAME = 'MFE_MAIN_APPLICATION'
const config = {
    configureWebpack: {
        devtool: 'source-map',
        output: {
            library: APP_NAME,
            // devtoolNamespace: APP_NAME,
            // jsonpFunction: APP_NAME,
        }
    },
    filenameHashing: false,
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: [
                path.resolve(__dirname, './src/common/style/variables.less'),
            ],
        },
    },
}
module.exports = config
